/**
 * 模块：${bean.notesMain} ---- ${bean.notesSub}-明细  T${bean.numMain}${bean.numSub}
 *
 *===============================================================================
 * 一、更新说明：
 * V1.0.0(${bean.numTime}) ${bean.author} 初版。
 *===============================================================================
 */
define([
    'components/baseView/SubBaseView',
    './${(detail.javaFlieName)?uncap_first}Model.js'
], function (BaseView, ${(detail.javaFlieName)}Model) {

    /**
     * 定义模块视图
     */
    var _view = BaseView.extend({
        /**
         * 初始化
         */
        initFuncConstant: function initFuncConstant(options) {
            this.model = new ${(detail.javaFlieName)}Model(_.omit(options, 'parent')); // 初始化Model
            this.initializeDefault();//执行父类默认设置
            this.headerTableId = '${detail.tableName}';//表名
            this.mainTable_pk = ['${detail.pk02}','${detail.pk03}'];//主键名称
            this.mainTable_fetchDataMethod = "getDetailsList";//查询方法
            this.mainTable_saveDataMethod = "saveDetailData";//保存方法
            this.mainTable_clsid = "t${bean.numMain}${bean.numSub}_detail";
        },

        /**
         * 编辑表单更新操作标记后执行
         */
        afterInitFormStatus: function (_scope, oprFlag) {
            //console.log(oprFlag);
            var _this = this;
        },

        /**
         *  初始化 所有form 下拉框，添加change监听
         * @param scope
         * @param name
         */
        initFormComboStatus: function (scope, name) {

        },
        /**
         * 编辑表单渲染后执行
         */
        afterFormEditorRender: function (_scope) {
            ////console.log("afterFormEditorRender");
            var _this = this;

        },
        /**
         * 保存之后的回调
         */
        onSubReplyOk: function(_scope, replyData){
            var _this = this;

        },

        onSelectStateChanged: function(_scope,Id) {
            var _this = this;
        }


    });
    return _view;
});